﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if DOT_NET
using Microsoft.VisualStudio.TestTools.UnitTesting;
#else
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
#endif
using StyleMVVM.DependencyInjection;
using StyleMVVM.UnitTests.TestClasses.EnrichObjects;

namespace StyleMVVM.UnitTests.DependencyInjection
{
	[TestClass]
	public class AttributedEnrichWithTests : BaseTestClass
	{
		[TestMethod]
		public void TestEnrichAttribute()
		{
			ISimpleService simpleService = Container.Locate<ISimpleService>();

			Assert.IsNotNull(simpleService);
			Assert.IsInstanceOfType(simpleService, typeof(WrappedService));

			Assert.AreEqual(1000, simpleService.TestMethod());
		}
	}
}
